/* ======================================================================================== */
/* ================== css file for 8-9-10 Ball Scoring, © jh-concepts.at ================== */
/* ======================================================================================== */
/* ===================================== global styles ==================================== */
/* ======================================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #fff;
  overflow: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #120606;
}

a, a:active, a:focus, a:visited, a:hover {
  text-decoration: none;
}

button {
  color: #000;
}

/* ======================================================================================== */
/* ====================================== index.html ====================================== */
/* ======================================================================================== */
/* ===================================== global styles ==================================== */
/* ======================================================================================== */
header,
main,
footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

header {
  height: 15vh;
  height: 15dvh;
  border-bottom: solid 1px #555;
  text-align: center;
  justify-content: space-between;
  background-color: #fff1;
}

header a {
  width: 10vw;
  width: 10dvw;
  height: 15vh;
  height: 15dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

header > a > img {
  height: 3vh;
  height: 3dvh;
}

header h1 {
  font-size: 4vh;
  font-size: 4dvh;
}

main {
  height: 80vh;
  height: 80dvh;
  flex-direction: column;
}

main div {
  width: 70%;
}

hr {
  margin: 2px 0;
  width: 70%;
  border-top: dashed 1px #fff;
  border-bottom: none;
}

footer {
  height: 5vh;
  height: 5dvh;
  border-top: solid 2px #555;
  font-size: 1.8vh;
  font-size: 1.8dvh;
  background-color: #fff1;
}

/* ======================================================================================== */
/* ===================================== input styles ==================================== */
/* ======================================================================================== */
main label {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5vh 0;
  margin: 1.5dvh 0;
  font-size: 3vh;
  font-size: 3dvh;
}

main input  {
  height: 4.5vh;
  height: 4.5dvh;
  width: 50%;
  font-size: 3vh;
  font-size: 3dvh;
  background-color: #ccc;
  color: #000;
  border-radius: 5px;
}

main input[type=color] {
  width: 50%;
}

#breakSelection {
  margin: 2vh;
  margin: 2dvh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

#breakSelection span {
  width: 90%;
}

#breakSelection label {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

input[type="radio"] {
  appearance: none;
  width: 2.5vh;
  width: 2.5dvh;
  height: 2.5vh;
  height: 2.5dvh;
  border: 1px solid #aaa;
  border-radius: 50%;
  outline: none;
  background-color: #aaa; 
  cursor: pointer;
}

input[type="radio"]:checked {
  background-color: #c00;
  border: solid 1px #fff;
}

#breakSelection label {
  margin: 0.5vh;
  margin: 0.5dvh;
}

div#sendData label {
  display: flex;
  justify-content: center;
  align-items: center;
}

div#sendData label button {
  width: 100%;
  height: 4vh !important;
  height: 4dvh !important;
  font-size: 2.5vh !important;
  font-size: 2.5dvh !important;
  color: #555;
}

/* ======================================================================================== */
/* ======================================= help area ====================================== */
/* ======================================================================================== */
#helpArea {
  display: none;
  width: 100vw;
  width: 100dvw;
  height: 80vh;
  height: 80dvh;
  top: 15vh;
  top: 15dvh;
  left: 0;
}

#helpArea h2 {
  font-size: 3.2vh;
  font-size: 3.2dvh;
  margin: 2vh 0 0 0;
  margin: 2dvh 0 0 0;
  padding: 0 2vw;
  padding: 0 2dvw;
  text-align: center;
}

#helpArea h3 {
  font-size: 2.75vh;
  font-size: 2.75dvh;
  margin: 2vh 0 0 0;
  margin: 2dvh 0 0 0;
  padding: 0 2vw;
  padding: 0 2dvw;
}

#helpArea p {
  font-size: 2.0vh;
  font-size: 2.0dvh;
  margin: 1.5vh 0 0 0;
  margin: 1.5dvh 0 0 0;
  padding: 0 2vw;
  padding: 0 2dvw;
}

#helpLine {
  width: 96vw;
  width: 96dvw;
  text-align: center;
  margin: 2vw;
  margin: 2dvw;
} 

#exitHelpArea {
  width: 34vw;
  width: 34dvw;
  margin: 5vh 33vw;
  margin: 5dvh 33dvw;
  text-align: center;
}

/* ======================================================================================== */
/* ===================================== scoring.html ===================================== */
/* ======================================================================================== */
/* ======================================================================================== */
/* ==================================== head info area ==================================== */
/* ======================================================================================== */
div#timeCounter {
  width: 100vw;
  width: 100dvw;
  height: 5vh;
  height: 5dvh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  padding: 0 12.5vw;
  padding: 0 12.5dvw;
}

#timeCounter div,
#timeCounter span {
  color: #fff;
  font-size: 0.75rem;
}

#timeCounter button {
  font-size: 0.75rem;
  min-height: 1.5vh;
  min-height: 1.5dvh;
  min-width: 15vw;
  min-width: 15dvw;
  padding: 0 1vw;
  padding: 0 1dvw;
  margin: 0 0 0 0.5vw;
  margin: 0 0 0 0.5dvw;
}

#stopWatch {
  display: none;
}

#matchTime {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#overview {
  height: 5vh;
  height: 5dvh;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: #000;
  color: #ff0 !important;
  font-size: 1.1rem;
  border-bottom: solid 2px #555;
}

#overview div {
  color: #ff0;
  text-align: center;
}

/* ======================================================================================== */
/* =================================== score info area ==================================== */
/* ======================================================================================== */
div.scoringArea {
  width: 100vw;
  width: 100dvw;
  height: 80vh;
  height: 80dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

div.playerArea {
  width: 50%;
  height: 80vh;
  height: 80dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

#player1Area {
  border-right: solid 0px #333;
}

#player2Area {
  border-left: solid 1px #333;
}

.playersHeader {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10vh;
  height: 10dvh;
}

.playerName {
  font-size: 6.5vh;
  font-size: 6.5dvh;
  text-align: center;
  word-wrap: break-word;
}

.playerAction {
  width: 100%;
  height: 12vh;
  height: 12dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#breakP1,
#breakP2 {
  width: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.actualBreak {
  width: 100%;
  height: 8vh;
  height: 8dvh;
  font-size: 2.5vh;
  font-size: 2.5dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  border: solid 1px #fff;
  border-radius: 5px;
}

.showScore {
  width: 100%;
  height: 58vh;
  height: 58dvh;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

div.setsScore {
  width: 100%;
  font-size: 35vh;
  font-size: 35dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.breakingPlayer {
  z-index: 100;
  height: 8vh;
  height: 8dvh;
  width: 50%;
  font-size: 2.5vh;
  font-size: 2.5dvh;
  border: solid 2px #fff;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
  background-color: #ddd;
}

div.plusMinus {
  width: 8vw;
  width: 8dvw;
  height: 58vh;
  height: 58dvh;
  min-width: 50px;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4vw;
  font-size: 4dvw;
  background-color: #0000;
  color: #555;
}

/* ======================================================================================== */
/* ================================= game footer buttons ================================== */
/* ======================================================================================== */
div#gamesMenu {
  height: 10vh;
  height: 10dvh;
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: solid 2px #555;
  padding: 0 12.5vw;
  padding: 0 12.5dvw;
}

div#gamesMenu button {
  height: 5vh;
  height: 5dvh;
  width: 15vw;
  width: 15dvw;
}

div#games1 {
  width: 50%;
  padding-right: 1vw;
  padding-right: 1dvw;
  text-align: right;
}

div#games2 {
  width: 50%;
  padding-left: 1vw;
  padding-left: 1dvw;
  text-align: left;
}

button#fullScreenOff {
  display: none;
}

/* ======================================================================================== */
/* ================================ result page after win ================================= */
/* ======================================================================================== */
#result {
  height: 100vh;
  height: 100dvh;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #c00;
}

#result p {
  text-align: center;
}

#winnersName {
  font-size: 5vh;
  font-size: 5dvh;
}

#result button {
  height: 5vh;
  height: 5dvh;
  width: 15vw;
  width: 15dvw;
  min-width: 130px;
  margin: 20px;
}

/* ======================================================================================== */
/* ==================================== media queries ===================================== */
/* ======================================================================================== */
/* ================================= orientation portrait ================================= */
/* ======================================================================================== */

@media (orientation: portrait) {

  div.setsScore {
    font-size: 25vw;
    font-size: 25dvw;
  }

  .playerName {
    font-size: 6.5vw;
    font-size: 6.5dvw;
  }

  header h1 {
    text-align: center;
    font-size: 4vw;
    font-size: 4dvw;
  }

  main label {
    margin: 1.5vw 0;
    margin: 1.5dvw 0;
    font-size: 3vw;
    font-size: 3dvw;
  }
  
  main input  {
    height: 4vw;
    height: 4dvw;
    font-size: 3vw;
    font-size: 3dvw;
  }
  
  header > a > img {
    width: 60%;
    height: auto;
  }

  input[type="radio"] {
    width: 2.5vw;
    width: 2.5dvw;
    height: 2.5vw;
    height: 2.5dvw;
  }

  div#sendData label button {
    width: 100%;
    height: 4vw !important;
    height: 4dvw !important;
    font-size: 2.5vw !important;
    font-size: 2.5dvw !important;
  }  

  footer {
    font-size: 1.5vh;
    font-size: 1.5dvh;
  }
  
  #helpArea h2 {
    font-size: 3.2vw;
    font-size: 3.2dvw;
    margin: 2vw 0 0 0;
    margin: 2dvw 0 0 0;
    padding: 0 2vh;
    padding: 0 2dvh;
    text-align: center;
  }
  
  #helpArea h3 {
    font-size: 2.75vw;
    font-size: 2.75dvw;
    margin: 2.0vw 0 0 0;
    margin: 2.0dvw 0 0 0;
    padding: 0 2vh;
    padding: 0 2dvh;
  }
  
  #helpArea p {
    font-size: 2.0vw;
    font-size: 2.0dvw;
    margin: 1.5vw 0 0 0;
    margin: 1.5dvw 0 0 0;
    padding: 0 2vh;
    padding: 0 2dvh;
  }
  
  #helpLine {
    margin: 2vh;
    margin: 2dvh;
  } 
  
}

/* ======================================================================================== */
/* =================================== max-width: 500px =================================== */
/* ======================================================================================== */
@media (max-width: 500px) {

  div.setsScore {
    font-size: 12.5vw;
    font-size: 12.5dvw;
  }

  div#actualTime {
    display: none;
  }

}

/* ======================================================================================== */
/* =================================== max-width: 400px =================================== */
/* ======================================================================================== */
@media (max-width: 400px) {

  div#overview {
    font-size: 0.85rem;
  }

}

/* ======================================================================================== */
/* =================================== max-width: 300px =================================== */
/* ======================================================================================== */
@media (max-width: 300px) {

  div.setsScore {
    font-size: 10vw;
    font-size: 10dvw;
  }

  div#overview {
    font-size: 0.8rem;
  }

}

/* ======================================================================================== */
/* =================================== max-width: 250px =================================== */
/* ======================================================================================== */
@media (max-width: 280px) {

  div#overview {
    font-size: 0.65rem;
  }

}